// 订单相关
import request from "@/utils/request";

export function getDataApi(orderId) {
  return request({
    url: "/api/order.rebate/getData/order_id/" + orderId,
    method: "get",
  });
}

export function getRebateApi(rebateId, orderId) {
  return request({
    url: "/api/order.rebate/read/id/" + rebateId + "/order_id/" + orderId,
    method: "get"
  });
}

export function doEditApi(rebateId, orderId, data) {
  return request({
    url: "/api/order.rebate/doEdit/id/" + rebateId + "/order_id/" + orderId,
    method: "post",
    data,
  });
}

